package es.bwain.xprt.preproduction;

import java.util.ArrayList;
import java.util.List;

public class HtmlEntity {

	private String name;
	private String entity;
	private List<HtmlAttribute> attributes = new ArrayList<HtmlAttribute>();
	
	public HtmlEntity(String name, String entity) {
		this.setName(name);
		this.setEntity(entity);
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEntity() {
		return entity;
	}

	public void setEntity(String entity) {
		this.entity = entity;
	}

	public List<HtmlAttribute> getAttributes() {
		return attributes;
	}
	public void setAttributes(List<HtmlAttribute> attributes) {
		this.attributes = attributes;
	}
	
	public void addAttribute(String name, boolean passthrough, boolean required, String defaultValue, String fixedValue, boolean xpathValue, String concatBefore, String concatAfter) {
		this.attributes.add(new HtmlAttribute(name, passthrough, required, defaultValue, fixedValue, xpathValue, concatBefore, concatAfter));
	}
	
	public void addAttribute(String name, boolean passthrough, boolean required, String defaultValue, String fixedValue, boolean xpathValue) {
		this.attributes.add(new HtmlAttribute(name, passthrough, required, defaultValue, fixedValue, xpathValue));
	}
	
	public void addAttribute(String name, boolean passthrough, boolean required, String defaultValue, String fixedValue) {
		this.attributes.add(new HtmlAttribute(name, passthrough, required, defaultValue, fixedValue));
	}
	
	public void addAttribute(String name, boolean passthrough, boolean required, String defaultValue) {
		this.attributes.add(new HtmlAttribute(name, passthrough, required, defaultValue));
	}
	
	public void addAttribute(String name, boolean passthrough, boolean required) {
		this.attributes.add(new HtmlAttribute(name, passthrough, required));
	}
	
	public void addAttribute(String name, boolean passthrough) {
		this.attributes.add(new HtmlAttribute(name, passthrough));
	}
	
	public void addAttribute(String name) {
		this.attributes.add(new HtmlAttribute(name));
	}
	
	
	
}
